﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
using MongoDB.Bson.Serialization.Attributes;

namespace DailyPhoto.Faces
{
    [BsonIgnoreExtraElements]
    public class Face
    {
        [BsonIgnore]
        public Rectangle Bounds { get; set; }

        public int SquarePixels
        {
            get
            {
                return this.Bounds.Width * this.Bounds.Height;
            }
        }

        public Face(Rectangle bounds)
        {
            this.Bounds = bounds;
        }

    }
}
